import axios from './index'
import { RequestParams } from '@/typings/lesson'
export function getSliders() {
    return axios.get('/slider/list')
}

export function getLessons<T>(params: RequestParams = { category: 'all' }) {
    return axios.get<T, T>('/lesson/list', { params })
}

export function getLesson<T>(id: string) {
    return axios.get<T, T>(`/lesson/${id}`)
}